using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace Verben
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
		}

		public void UpdateVerb()
		{
			Verb v = new Verb();
			v.Infinitiv = VerbTextBox.Text;
			v.Fill();

			VerbForm toShow = v.Present;

			if (RadioPast.Checked)
			{
				toShow = v.Past;
			}

			verbFormen1.Fill(toShow);
		}

		private void VerbTextBox_TextChanged(object sender, EventArgs e)
		{
			UpdateVerb();
		}

		private void RadioPast_CheckedChanged(object sender, EventArgs e)
		{
			UpdateVerb();
		}
	}
}